/*
Copyright (C) 1996-1997 Id Software, Inc.

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 3
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

*/
// winquake.h: Win32-specific Quake header file

#pragma once


#include <windows.h>

#ifndef SERVERONLY
#include <ddraw.h>
#include <dsound.h>
#ifndef GLQUAKE
#include <mgraph.h>
#endif
#endif

#ifndef SERVERONLY

extern IDirectSound8 *ds_Object;
extern IDirectSoundBuffer *ds_Buffer;

extern DWORD ds_BufferSize;
//#define SNDBUFSIZE 65536

#endif

extern BOOL	WinNT;

extern BOOL	mouseinitialized;
extern HANDLE	hinput, houtput;

BOOL VID_CreateWindow (DXGI_MODE_DESC *mode, BOOL windowed);
void VID_CenterWindow (HWND hWndCenter);
void Sys_AppActivate (BOOL fActive, BOOL minimize);
void VID_DescribeCurrentMode_f (void);
DXGI_MODE_DESC *VID_VerifyMode (DXGI_MODE_DESC *mode, BOOL windowed);
void VID_HandleWMSize (int width, int height);
void VID_HandleResize (void);

void S_BlockSound (void);
void S_UnblockSound (void);

LONG WINAPI MainWndProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);

int RectWidth (const RECT *r);
int RectHeight (const RECT *r);

